<template>
	<view class="content">
		<headerbox :cixitype="cixi"></headerbox>
		<view class="pages">
			<view class="card">
				<view class="card-body">
					<view class="cons">
						等级晋升说明 ：<br />
						用户：0%直属佣金<br />
						1星经纪人：10% 直属佣金<br />
						需直推2名活跃会员<br />
						2星经纪人：20% 直属佣金<br />
						需直推3名一星会员或者团队人数达到18人<br />
						3星经纪人：25% 直属佣金<br />
						需直推3名二星会员或者团队人数达到69人<br />
						4星经纪人：30% 直属佣金<br />
						需直推3名三星会员或者团队人数达到186人<br />
						5星经纪人：35% 直属佣金<br />
						需直推3名四星会员或者团队人数达到564人<br />
						6星经纪人：40% 直属佣金<br />
						需直推3名五星会员或者团队人数达到1698人<br />
						7星经纪人：45% 直属佣金<br />
						需直推3名六星会员或者团队人数达到5100人<br />
						普通用户可购买套餐1至套餐3<br />
						二星经纪人解锁套餐4<br />
						三星经纪人解锁套餐5<br />
						四星经纪人解锁套餐6<br />
						代理佣金计算方式：<br />
						1，保费×50%=佣金<br />
						2，佣金×保险经纪等级=直属佣金<br />
						3，当前等级-直推等级 =隔代收益 例如：直属邀请一位保险用户，你是3星经纪人50%-直属级别佣金%=你获得的佣金%<br />
						4，伯乐奖：如你是4星, 无论下线是与你平级/ 越级,你都可获得该下线佣金收入的5%.<br />
						5，佣金实际情况以系统派发为准，系统计算保留小数点后两位。<br /> 
					</view>
				</view>
			</view>
		</view>
		<view class="footer-bar" :class="cixi ? '':'footer-bar-detached'">
			<view class="fbitem" @click="goSwichPage('/pages/index/index')">
				<view class="image">
					<image src="../../static/timg/shouye.png" mode=""></image>
				</view>
				<view class="text">首页</view>
			</view>
			<view class="fbitem" @click="goSwichPage('/pages/contract/contract')">
				<view class="image">
					<image src="../../static/timg/heyue.png" mode=""></image>
				</view>
				<view class="text">合约</view>
			</view>
			<view class="fbitem" @click="goSwichPage('/pages/user/assets')">
				<view class="image">
					<image src="../../static/timg/zichan.png" mode=""></image>
				</view>
				<view class="text">资产</view>
			</view>
			<view class="fbitem" @click="goSwichPage('/pages/user/claim')">
				<view class="image">
					<image src="../../static/timg/suopei.png" mode=""></image>
				</view>
				<view class="text">索赔</view>
			</view>
		</view>
	</view>
</template>

<script>
	import headerbox from '@/pages/header.vue'
	export default{
		components:{
			headerbox
		},
		data(){
			return{
				cixi:false
			}
		},
		onPageScroll(e) {
			if(e.scrollTop > 0){
				this.cixi = true
			}else{
				this.cixi = false
			}
		},
		methods:{
			copy(value) {
				uni.setClipboardData({
					data: value,
					success: function() {
						//调用方法成功
						uni.showToast({
							title: '复制成功',
							icon: 'success',
							duration: 2000
						});
					}
				})
			},
			goSwichPage(page){
				uni.navigateTo({
					url:page
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	*{
		box-sizing: border-box;
	}
	.content{
		width: 100%;
		min-height: 100vh;
		background-color: #f1f1f7;
		color: #747474 !important;
	}
	.pages{
		padding-top: calc(calc(110rpx + 60rpx) + env(safe-area-inset-top));
		padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
	}
	.card{
		width: 94%;
		margin: 0 auto;
		border-radius: 20rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		word-wrap: br / /eak-word;
		margin-bottom: 30rpx;
		background-color: #fff;
		box-shadow: rgba(0, 0, 0, .35) 0px 30px 60px -30px, rgba(0, 0, 0, .35) 0px -2px 6px 0px inset;
	}
	.card-body{
		z-index: 3;
		flex: 1 1 auto;
		padding: 40rpx;
	}
	.cons{
		color: #747474;
		margin-bottom: 60rpx;
		padding-bottom: 0px;
		letter-spacing: -0.4rpx;
		font-size: 28rpx;
		line-height: 56rpx;
	}
	
	.footer-bar{
		background-color: rgba(255, 255, 255, 0.95);
		padding: 0px 20rpx;
		position: fixed;
		bottom: 0px;
		left: 0px;
		right: 0px;
		z-index: 98;
		backdrop-filter: blur(20rpx);
		display: flex;
		text-align: center;
		transition: all 250ms ease;
		height: calc(120rpx + env(safe-area-inset-bottom));
		box-shadow: 0 -10rpx 10rpx 0 rgba(0, 0, 0, 0.04);
	}
	.footer-bar.footer-bar-detached{
		border-radius: 40rpx;
		left: 20rpx !important;
		right: 20rpx !important;
		bottom: 30rpx !important;
		box-shadow: 0 0px 30rpx 0 rgba(0, 0, 0, 0.1) !important;
		height: 120rpx !important;
	}
	.fbitem{
		color: #818181;
		position: relative;
		flex: 1 1 auto;
		padding-top: 24rpx;
		
		.image{
			height: 48rpx;
			margin-top: -4rpx;
			
			image{
				width: 36rpx;
				height: 36rpx;
			}
		}
		.text{
			height: 48rpx;
			margin-top: -6rpx;
			font-size: 24rpx;
			opacity: 0.7;
			color: #818181;
		}
	}
</style>